package com.study.demo.gsbean.anno;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: elvin
 * @time: 2019-08-19 11:14
 * @desc:
 **/
@Configuration
public class Config {
    @Bean
    public User user(){
        User user = new User();
        user.setId(1);
        user.setName("name");
        return user;
    }
}
